package com.mew.chess.core.game.pokdeng.game.message;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请求反馈
 * @author dylin
 * @create 2021/5/7
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AskResponse extends ZebraBaseMessage<AskResponse> {
    private int askCard;
    private CardMessage card;

    @Override
    public void write(ByteBuf b) {

        writeInt(b,askCard);
        card.write(b);
    }

    @Override
    public AskResponse read(ByteBuf byteBuf) {
        return null;
    }
}
